We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d275c23 + 925d99d commit 5423ebdCopy full SHA for 5423ebd
1 file changed
codeguru_profiler_agent/file_reporter/file_reporter.py
@@ -35,7 +35,9 @@ def refresh_configuration(self):
35
"""
36
pass
37
38
- def report(self, profile, agent_metadata=None, timestamp=datetime.datetime.now()):
+ def report(self, profile, agent_metadata=None, timestamp=None):
39
+ if timestamp is None:
40
+ timestamp = datetime.datetime.now()
41
output_filename = self._output_filename_for(timestamp)
42
43
logger.info("Writing profile to '{}'".format(output_filename))
0 commit comments